package com.hdoit.apollo.logical.shop.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.tennetcn.data.dao.base.impl.SuperDao;
import com.tennetcn.data.message.PagerModel;
import com.hdoit.apollo.logical.shop.dao.IPaymentDao;
import com.hdoit.apollo.logical.shop.mapper.PaymentMapper;
import com.hdoit.apollo.logical.shop.model.Payment;
import com.hdoit.apollo.logical.viewmodel.shop.PaymentSearch;
/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年05月04日 15:05:29
 * @comment
 */
@Component
public class PaymentDaoImpl extends SuperDao<Payment> implements IPaymentDao{

	@Autowired
	private PaymentMapper paymentMapper;
	
	@Override
	public Payment queryModelById(String paymentId) {
		return paymentMapper.queryModelById(paymentId);
	}

	@Override
	public List<Payment> queryListMPForPurchase(PaymentSearch search,
			PagerModel pagerModel) {
		
		return paymentMapper.queryListMPForPurchase(search,pagerModel);
	}

	@Override
	public int queryCountMPForPurchase(PaymentSearch search) {
		
		return paymentMapper.queryCountMPForPurchase(search);
	}

	@Override
	public List<Payment> queryAccountDetail(PaymentSearch search) {
		
		return paymentMapper.queryAccountDetail(search);
	}

}